window.onclick = function(){
    var url = window.location.toString();
    var idx = url.indexOf('.');
    var idx2 = url.lastIndexOf('/');
    //alert(idx2);
    //alert(idx);
    var id = url.substring(idx2 + 1, idx);
    var idnum = parseInt(id);
 //   alert(idnum);
//    alert(id);
    var ori = id + '.jsp';
    var rep = (idnum + 1) + '.jsp';
 ///   alert(ori);
  //  alert(rep);
    url = url.replace(ori, rep);
  //  alert(url);
    window.location = url;
}
